﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using System.Data;

namespace logic
{
    public class recipeItem
    {
        public static void insert(RecipeItemEntity recipeItem)
        {
            RecipeItem.insert(recipeItem);
        }

        public static void update(RecipeItemEntity recipeItem)
        {
            RecipeItem.update(recipeItem);
        }

        public static void delete(int rciId)
        {
            RecipeItem.delete(rciId);
        }
        public static void delByRecipeId(int recipeId)
        {
            RecipeItem.delete(recipeId);
        }
        public static RecipeItemEntity getById(int rciId)
        {
            return RecipeItem.getById(rciId);
        }

        public static DataTable listRecipeItemByRecipeId(int recipeId)
        {
            return RecipeItem.listRecipeItemByRecipeId(recipeId);
        }
    }
}